Skip to content

Conversation

@mwtoews
Copy link
Contributor

@mwtoews mwtoews commented Jul 31, 2025

This PR does a few useful things:

  • Update the pre-commit repos (via pre-commit autoupdate),
  • Add ruff check; this required modifying noqa: E722 to ignore bare except
  • Add a "dev" optional install, with some development tools. This allows (e.g.) uv sync --all-extras (docs here). In otherwords, it allows pip install -e .[dev] to install development tools as the optional/extra.

@mwtoews mwtoews force-pushed the up-pre-commit-add-dev branch from 2bcabb1 to e297ee5 Compare July 31, 2025 01:16
@JamesParrott
Copy link
Collaborator

Thanks Mike. Is there any point continuing to run pylint, if we add normal Ruff, or can that be dropped?

@mwtoews
Copy link
Contributor Author

mwtoews commented Jul 31, 2025

I'm considering that too, but for a later PR. I think there could be a few missing rules in ruff for pylint, but I could be mistaken. Certainly the main rules are fully implemented in ruff.

@JamesParrott
Copy link
Collaborator

JamesParrott commented Jul 31, 2025

I can't remember why I picked Pylint over Ruff back in September, but even though it's done its job very well I originally picked Pylint over Ruff to support Python 2, so it's fine to drop it now. It'll tidy the config file up, and allow removal of the pylint disable directives.

@JamesParrott JamesParrott force-pushed the up-pre-commit-add-dev branch from e297ee5 to 556c7cb Compare July 31, 2025 20:54
@JamesParrott JamesParrott merged commit 07af50b into GeospatialPython:3.0.0-alpha Aug 1, 2025
26 checks passed
@JamesParrott
Copy link
Collaborator

Thanks Mike.

@mwtoews mwtoews deleted the up-pre-commit-add-dev branch August 1, 2025 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants